import request from '@/utils/request'

export function getProjectCostByFinancer(data) {
  return request({
    url: 'api/CostApply/GetAllByFinancer',
    method: 'post',
    data
  })
}

export function getProjectCostByManager(data) {
  return request({
    url: 'api/CostApply/GetAllByManager',
    method: 'post',
    data
  })
}

export function addProjectCost(data) {
  return request({
    url: 'api/CostApply/Create',
    method: 'post',
    data
  })
}

export function financerAudit(data) {
  return request({
    url: 'api/CostApply/FinancerAudit',
    method: 'post',
    data
  })
}

export function managerAudit(data) {
  return request({
    url: 'api/CostApply/ManagerAudit',
    method: 'post',
    data
  })
}

export function updProjectCost(data) {
  return request({
    url: 'api/CostApply/Update',
    method: 'post',
    data
  })
}

export function getProjectCost(data) {
  return request({
    url: 'api/CostApply/GetAll',
    method: 'post',
    data
  })
}

// export function updProjectCostState(data) {
//   return request({
//     url: 'api/CostApply/UpdateState',
//     method: 'post',
//     data
//   })
// }

// export function costCheck(data) {
//   return request({
//     url: 'api/CostApply/CostCheck',
//     method: 'post',
//     data
//   })
// }

